package demo01;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: YKH
 * Date: 2022-04-23
 * Time: 15:32
 */
public class Test {
    public static void main(String[] args) {
        //自动装箱
        int a = 10;
        Integer b = a;
        //手动装箱
        Integer c = Integer.valueOf(a);

        //自动拆箱
        Integer d = 15;
        int e = d; //调用了 Intvalue 进行拆箱
        //手动拆箱
        int f = d.intValue();

    }
}
